package com.penglecode.xmemcached.transcoder;

import com.penglecode.protostuff.runtime.ObjectSerializer;
import com.penglecode.protostuff.runtime.ProtostuffSerializer;

import net.rubyeye.xmemcached.transcoders.SerializingTranscoder;

public class ProtostuffSerializingTranscoder extends SerializingTranscoder {

	private ObjectSerializer objectSerializer = new ProtostuffSerializer();
	
	protected byte[] serialize(Object o) {
		return objectSerializer.serialize(o);
	}

	protected Object deserialize(byte[] in) {
		return objectSerializer.deserialize(in);
	}
	
}
